import time

from selenium import webdriver
from Page.Page import Page
import unittest

class TestCase(unittest.TestCase):
    def setUp(self):
        self.driver=webdriver.Firefox()
        self.driver.maximize_window()
        #隐式等待
        self.driver.implicitly_wait(5)
    def tearDown(self):
        time.sleep(5)
        self.driver.quit()

    def test_a3mall_01(self):
        po=Page(self.driver)
        po.a3mall_search_01()

if __name__ == '__main__':
    unittest.main()